TEMPLATE = lib
TARGET = Wizard
CONFIG += create_prl qt warn_on
#VERSION = 1.0.0

# Input
HEADERS += BaseAbilitiesWidget.h \
           ClassWidget.h \
           DetailsWidget.h \
           EquipmentWidget.h \
           FeatsWidget.h \
           NewCharacterWizard.h \
           PowersWidget.h \
           RaceWidget.h \
           SkillsWidget.h

FORMS += baseabilitiespage.ui \
         classpage.ui \
         equipmentpage.ui \
         featspage.ui \
         newcharacterwizard.ui \
         powerspage.ui \
         racepage.ui \
         skillspage.ui

SOURCES += BaseAbilitiesWidget.cpp \
           ClassWidget.cpp \
           DetailsWidget.cpp \
           EquipmentWidget.cpp \
           FeatsWidget.cpp \
           NewCharacterWizard.cpp \
           PowersWidget.cpp \
           RaceWidget.cpp \
           SkillsWidget.cpp

RESOURCES = ../../resources.qrc

INCLUDEPATH += ../.
DEPENDPATH += ../.
macx {
    DESTDIR = ../../DndTool.app/Contents/Frameworks
    CONFIG += lib_bundle
    # QMAKE_FRAMEWORK_BUNDLE_NAME = $$qtLibraryTarget($$TARGET)
    QMAKE_LFLAGS += -F$$DESTDIR
    QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
    LIBS += -framework DndData -framework Dialogs -framework Xml -framework Models
    #TARGET = $$join(TARGET,,lib,.dylib.$$VERSION)
} else {
    DESTDIR = ../../lib
    LIBS += -lDndData -lDialogs -lXml -lModels
    QMAKE_LFLAGS += -L../../lib
}
